home *** CD-ROM | disk | FTP | other *** search
/ Animation How-To / Animation How-to CD.iso / PLY / CHAPTER3 / ROCKY / ROCK4.PI < prev    next >
Text File  |  1994-01-01  |  797b  |  47 lines

  1. // ROCK3.PI
  2. // Rocking Color Weirdness
  3.  
  4. start_frame 0
  5. end_frame 29
  6. total_frames 30
  7.  
  8. outfile "rock3"
  9.  
  10. define pi 3.1415927
  11. define rad pi/180
  12.  
  13. define index 360/total_frames
  14. define phz frame*index
  15.  
  16. define tx 100*sin(phz*rad)
  17. define ty 50*sin(phz*rad)
  18. define tz 100*sin(phz*rad)
  19.  
  20. // Get various surface finishes
  21. background MidnightBlue
  22. light <0.5, 0.5, 0.5>, < 180, 150, -150>
  23. light <0.5, 0.5, 0.5>, < 0, 100, -15>
  24. light <0.5, 0.5, 0.5>, < 0, 0, 0>
  25.  
  26. define deres 0.1
  27.  
  28. // Set up the camera
  29. viewpoint {
  30.    from <300,200,-250>
  31.    at <0,0,0>
  32.    up <0,1,0>
  33.    angle 90
  34.    hither 1
  35.    aspect 1.433*2
  36.    resolution 320*deres,100*deres
  37.    }
  38.  
  39. include "colorbit.inc"
  40.  
  41. // Create a volume
  42. object {
  43.    sphere <0,0,0>, 10*54
  44.    color_phase
  45.    translate <tx,ty,tz>
  46.    }
  47.